package com.tinckay.entity.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 仓体前端测距信息
 * </p>
 *
 * @author Jean
 * @since 2018-11-13
 */
@Data
@TableName("pour_storehouse_measure_data")
@ApiModel(value = "StorehouseMeasureData对象", description = "仓体前端测距信息")
public class StorehouseMeasureData extends Model<StorehouseMeasureData> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "所属仓体编号，yyyyMMddHHmmss（当前时间格式化构成）")
    private String storeCode;

    @ApiModelProperty(value = "测距时仓体状态 100新增，90（监测准备完毕），99（监测准备中），10（速度15泵送），11（速度15泵送暂停），30（速度30泵送），31（速度30泵送暂停），0停止")
    private Integer storeState;

    @ApiModelProperty(value = "测距命令发送时间")
    private LocalDateTime cmdTime;

    @ApiModelProperty(value = "平均高度")
    private BigDecimal avgHeight;

    @ApiModelProperty(value = "A点距离")
    private BigDecimal heightA;

    @ApiModelProperty(value = "A点测距时间")
    private LocalDateTime heightATime;

    @ApiModelProperty(value = "B点距离")
    private BigDecimal heightB;

    @ApiModelProperty(value = "B点测距时间")
    private LocalDateTime heightBTime;

    @ApiModelProperty(value = "C点距离")
    private BigDecimal heightC;

    @ApiModelProperty(value = "C点测距时间")
    private LocalDateTime heightCTime;

    @ApiModelProperty(value = "D点距离")
    private BigDecimal heightD;

    @ApiModelProperty(value = "D点测距时间")
    private LocalDateTime heightDTime;

    @ApiModelProperty(hidden = true)
    @TableField(value = "dataTime", fill = FieldFill.INSERT)
    private LocalDateTime dataTime;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private LocalDateTime createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
